package com.jblog.core.service.blog;

import java.util.List;

import com.jblog.common.page.Pagination;
import com.jblog.core.model.blog.Comment;
import com.jblog.core.model.blog.param.CommentParam;

public interface CommentService {
    
    public Comment findById(Long id);
    
    public List<Comment> findByPostId(Long id);
    
    public List<Comment> findByParam(CommentParam p);

    public Pagination findByParamByPage(CommentParam p);
    
    public Long count(CommentParam p);
    
    public void enDisable(Comment e, boolean able);
    
    public void save(Comment e);
    
    public void update(Comment e);
    
}
